<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>个人档案</title>
    <!-- 响应式   -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="font-awesome/css/all.css">
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <div class="nav">
        <div class="banner">
            <img src="img/banner.jpg" alt="">
        </div>
        <div class="nav-link">
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">关于</a></li>
                <li><a href="#">作品</a></li>
                <li><a href="#">社交</a></li>
            </ul>
        </div>
    </div>

    <section class="main">
        <header>
            <div class="toggle"></div>
            <div class="btn">
                <a href="#">联系我</a>
            </div>
        </header>
        <div class="img-box">
            <img src="img/img.jpg" alt="">
        </div>
        <div class="content">
            <h2>
                您好, 我是 <br><span>dev 旺</span>
            </h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus assumenda eum recusandae veniam dolore dolorum iusto nam consectetur eveniet quas tempore explicabo, obcaecati ipsum a, similique fugiat nulla nobis consequuntur.</p>
            <a href="#" class="btn">更多...</a>
        </div>

        <footer>
            <div class="sci">
                <ul>
                    <li><a href="#"><i class="fab fa-weixin"></i></a></li>
                    <li><a href="#"><i class="fab fa-alipay"></i></a></li>
                    <li><a href="#"><i class="fab fa-weibo"></i></a></li>
                </ul>
            </div>
            <div class="rg">
                copyright © 2021 <span>dev 旺</span>
            </div>
        </footer>
    </section>
</body>

<script>
    const toggle = document.querySelector('.toggle');
    const nav = document.querySelector('.nav');
    const main = document.querySelector('.main');

    toggle.addEventListener('click', () => {
        nav.classList.toggle('active');
        main.classList.toggle('active');
    });

</script>

</html>
